<?php require_once('../../core/import.php');?>
<?php User::Permission('SLIDE_DELETE'); ?>
<?php
    if($_SERVER['REQUEST_METHOD']=='POST')
    {        
        #遍历
        foreach(@Functions::FormArgs('ID') as $Value)
        {
		 if($Data=DB::GetRowByID('dm_slide',$Value))
      	  { 
			if($Data['PicturePath'])
			 {
				@unlink(Config::PATH_UPLOAD_ATTACHMENT_NEWS.'/'.$Data['PicturePath']);
			 }
			 
			DB::CExec('delete from dm_slide where ID='.$Value);
		  }
		
        }

        #转向
        Functions::JsLocation($_SERVER['HTTP_REFERER']);
    }
?>